﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.ServiceLocation;

namespace Newtonsoft.Utilities.Locator
{
  public class NullServiceLocator : IServiceLocator
  {
    public IEnumerable<TService> GetAllInstances<TService>()
    {
      yield break;
    }

    public IEnumerable<object> GetAllInstances(Type serviceType)
    {
      yield break;
    }

    public TService GetInstance<TService>(string key)
    {
      return default(TService);
    }

    public TService GetInstance<TService>()
    {
      return default(TService);
    }

    public object GetInstance(Type serviceType, string key)
    {
      return null;
    }

    public object GetInstance(Type serviceType)
    {
      return null;
    }

    public object GetService(Type serviceType)
    {
      return null;
    }
  }
}